package com.example.iotmanagerment26.domain;

import org.springframework.stereotype.Component;

@Component
public class DeviceHold {
    int id;
    String userName;
    String devName;
    int holded;

    public DeviceHold(int id, String userName, String devName, int holded) {
        this.id = id;
        this.userName = userName;
        this.devName = devName;
        this.holded = holded;
    }

    public DeviceHold() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDevName() {
        return devName;
    }

    public void setDevName(String devName) {
        this.devName = devName;
    }

    public int getHolded() {
        return holded;
    }

    public void setHolded(int holded) {
        this.holded = holded;
    }

    @Override
    public String toString() {
        return "DeviceHold{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", devName='" + devName + '\'' +
                ", holded=" + holded +
                '}';
    }
}